  {% include file="index.header.tpl.php" %}
  {% include file="index.left.tpl.php" %}
   <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="get">
                 <div class="box-body">
                     <div class="form-group">
                         <label for="inputPassword3" class="col-md-1 control-label" style="padding-right:0; padding-left:0; font-weight:500;">
                             选择周次：
                         </label>
                         <div class="input-group col-md-1" style="float:left; margin-right: 10px;">
                             <select class="form-control" name="week_number" id="week_id" style="margin:0;padding:0;">
                                 <option value="">请选择</option>
                                 {%foreach from=$week_lists key=key item=value%}
                                 <option value="{%$value.week_number%}" {%if $weeknum eq $value.week_number %}selected{%/if%}>{%$value.week_number%}</option>
                                 {%/foreach%}
                             </select>
                         </div>
                           <input type="hidden" name="a" value="sanitation.add">
                           <button type="submit" class="btn btn-primary">确定</button>
                     </div>
                  </div>
             </form>
{%if $weeknum%}
			      <form action="" method="post">	
                         <div class="box-header with-border">
                    <span class="fa fa-table" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">卫生检查登记表</p>                          
                </div>
                         <h4 class="text-center">
                            {%$semester_data.semester_xname%}{%$semester_data.semester_name%}
                            各班卫生情况检查登记表
                         </h4>
                           <table class="table table-bordered"  id="mytable">
                                    <tr>
									    <td rowspan="2">班级</td>
                                        <td colspan="2" align="center">星期一</td>
										<td colspan="2" align="center">星期二</td>
                                        <td colspan="2" align="center">星期三</td>
										<td colspan="2" align="center">星期四</td>
                                        <td colspan="2" align="center">星期五</td>
										
                                    </tr>	
                                    <tr>
                                        <td>常规</td>
										<td>其他</td>
                                        <td>常规</td>
										<td>其他</td>
                                        <td>常规</td>
										<td>其他</td>
										<td>常规</td>
										<td>其他</td>
										<td>常规</td>
										<td>其他</td>
                                       
                                    </tr>
									{%foreach from=$class_lists key=key item=value%}
                                     <tr>
                                        <td>{%$value.class_name%}</td>
										{%foreach from=$value.infos key=ke item=va%}
										<td>
											<select class="form-control" name="sanitation_rule_{%$value.class_id%}_{%$ke+1%}[]">
                                                 <option value=""> 请选择</option>

												 {%foreach from=$score_lists key=k item=v%}
                                                 <option value="{%$v.score_value%}" {%if $v.score_value eq $va.sanitation_rule%}selected{%/if%}>{%$v.score_value%}</option>
												 {%/foreach%}
                                               
                                             </select>
										</td>
                                        <td>
											<select class="form-control" name="sanitation_rests_{%$value.class_id%}_{%$ke+1%}[]">
                                                 <option value=""> 请选择</option>

												 {%foreach from=$score_lists key=k item=v%}
                                                 <option value="{%$v.score_value%}" {%if $v.score_value eq $va.sanitation_rests%}selected{%/if%}>{%$v.score_value%}</option>
												 {%/foreach%}
                                               
                                             </select>
										</td>
										{%/foreach%}
                                    </tr> 
									{%/foreach%}
                          <input type="hidden" name ="week_number" value="{%$weeknum%}">
                        </table>
                           <div class="box-footer text-center">
                               <button type="submit" class="btn btn-primary">保 存</button>
                           </div>
                   </form>
             {%/if%}
           </div><!--box box-default box-solid-->
        </section>   
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
  {% include file="index.footer.tpl.php" %}
 